package cn.zhiwen.enumname;

/**
 * crm业务消息枚举 从(20000~19999) Created by lusue on 2018/1/26
 */
public enum RespMsgEnum {
    SUCCESS("0000", "成功"), PARAM_ERROR("00001", "参数不正确"), OPERAT_ERROR("00002", "操作失败"), RESULT_NULL("00003", "记录不存在"),

    LOGIN_ERR("30001", "登录失败！"),

    code_ERROR("30002", "验证码校验失败！"),

    SENDMESSAGE_ERROR("00004", "发送验证码失败"),

    SMSCODE_ERROR("00005", "验证码错误"),

    hadBeen_Registed("000010", "手机号已经被注册"),

    openId_overTime("20005", "openId已过期"),

    status_code_error("000022", "logincode登录状态码错误"),

    openId_blank("20006", "通过tokenAcess获取openId失败"),

    Sign_error("20007", "签收订单失败"),

    remark_error("20008", "用户评论失败"),

    ERROR("19999", "服务器处理异常，请稍候"), ERROR_LOGIN("00005", "登录异常"),

    DELEARID_NULL("30002", "数据缺失"),

    DATAERROR("200019", "vin码无对应车型"),

    QUERY_LoSE_ERROR("200010", "用户查询质损信息异常"),

    USER_LEGAL_ERROR("20009", "用户角色权限异常"),

    PAGE_PARAM_ERROR("200011", "分页参数不正确"),

    NAME_and_linktel_REPEATE("200013", "用户名和手机号重复，请重新输入"),

    NAME_REPEATE("200014", "用户名重复,请重新输入"),

    linktel_REPEATE("200015", "手机号重复，请重新输入"),

    Blank_dimIdORbrandCode("200035", "主机厂ID和Code不能为空"),

    NO_AUTH_GET_VIN("200012", "无权查看该VIN对应的信息"),

    USER_EXISTS_ERROR("20013", "无法获取用户信息，请确认是否审核通过？"),

    USER_ACCESS_ERROR("200016", "您的帐号未认证，请联系本店对口MAC，申请帐号认证。"),

    NO_EXAMINE("200017", "抱歉，您无权查看");

    private final String code;
    private final String msg;

    RespMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return "RespMsgEnum{" + "code='" + code + '\'' + ", msg='" + msg + '\'' + '}';
    }
}
